package com.yp.lession01.entity;

import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @author zoro
 * @create 2022-03-11 21:48
 */
@Component

public class Category implements Serializable {
    private int cId;
    private String cName;

    @Override
    public String toString() {
        return "Category{" +
                "cId=" + cId +
                ", cName='" + cName + '\'' +
                '}';
    }

    public Category(int cId, String cName) {
        this.cId = cId;
        this.cName = cName;
    }

    public Category() {
    }

    public int getcId() {
        return cId;
    }

    public void setcId(int cId) {
        this.cId = cId;
    }

    public String getcName() {
        return cName;
    }

    public void setcName(String cName) {
        this.cName = cName;
    }
}
